package cn.gary.oaserver.mapper;

import cn.gary.oaserver.entity.TMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gary
 * @since 2024-03-15
 */
public interface TMenuMapper extends BaseMapper<TMenu> {

    List<TMenu> getMenusByAdminId(Integer id);

    List<TMenu> getMenusByRoleId(Integer rid);

    Integer[] getMenusById(Integer id);

    //根据角色获取菜单列表
    List<TMenu> getMenusWithRole();
}
